package com.smile.service.entity.organization;


import com.alibaba.fastjson2.annotation.JSONField;

public class AirportOrganizationInfo {

    @JSONField(name = "device_binding_code")
    private String deviceBindingCode;

    @JSONField(name = "organization_id")
    private String organizationId;

    // Getters & Setters
    public String getDeviceBindingCode() {
        return deviceBindingCode;
    }

    public void setDeviceBindingCode(String deviceBindingCode) {
        this.deviceBindingCode = deviceBindingCode;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    @Override
    public String toString() {
        return "AirportOrganizationInfo{" +
                "deviceBindingCode='" + deviceBindingCode + '\'' +
                ", organizationId='" + organizationId + '\'' +
                '}';
    }

    // 实用方法 - 检查是否有有效的绑定码
    public boolean hasValidBindingCode() {
        return deviceBindingCode != null && !deviceBindingCode.isEmpty();
    }

    // 实用方法 - 检查是否包含有效的组织ID
    public boolean hasValidOrganizationId() {
        return organizationId != null && !organizationId.isEmpty();
    }
}
